package com.visitor.registration.mapper;

import com.visitor.registration.entity.Province;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProvinceMapper {
    
    /**
     * 查询所有省份
     */
    List<Province> selectAll();
    
    /**
     * 根据ID查询省份
     */
    Province selectById(Integer id);
    
    /**
     * 查询省份及其下属城市
     */
    Province selectWithCities(Integer id);
} 